<%@ page import="com.wuchao.service.serviceImpl.ServiceImpl" %><%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2022/6/25
  Time: 16:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    request.setCharacterEncoding("utf-8");
    ServiceImpl spl = new ServiceImpl();
    Integer id= Integer.parseInt(request.getParameter("id"));
    out.print(id);
    int update = spl.update("delete from user where id=?", id);
    if(update>0){
        request.getRequestDispatcher("t1.jsp?f1=x").forward(request,response);
    }else{
        response.sendRedirect("t1.jsp?f2=x");
    }
%>
</body>
</html>
